package com.dems.core.exception;

import com.dems.core.enumerate.ResEnum;

public class LoanassistRuntimeException extends RuntimeException {

    private ResEnum errorCode;

    public LoanassistRuntimeException() {
    }

    public LoanassistRuntimeException(String message) {
        super(message);
    }

    public LoanassistRuntimeException(ResEnum errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public LoanassistRuntimeException(String message, Throwable cause) {
        super(message, cause);
    }

    public LoanassistRuntimeException(ResEnum errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public LoanassistRuntimeException(Throwable cause) {
        super(cause);
    }

    public LoanassistRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public ResEnum getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(ResEnum errorCode) {
        this.errorCode = errorCode;
    }
}
